<script>
export default {
  render(createElement) {
    return createElement(
      "div",
      {
        class: "page flex unified-flex-align unified-flex-center",
      },
      [
        createElement(
          "el-result",
          {
            attrs: {
              icon: "error",
              title: "404",
              subTitle: "页面不存在",
            },
          },
          [
            createElement("template", { slot: "extra" }, [
              createElement("el-button", {
                attrs: {
                  type: "info",
                  size: "medium",
                  plain: "plain",
                  round: "round",
                },
                domProps: {
                  innerText: "返回",
                },
                on: {
                  click: this.back,
                },
              }),
              createElement("el-button", {
                attrs: {
                  type: "primary",
                  size: "medium",
                  //   plain:"plain",
                  round: "round",
                },
                domProps: {
                  innerText: "回到首页",
                },
                on: {
                  click: this.goHome,
                },
              }),
            ]),
          ]
        ),
      ]
    );
  },
  methods: {
    back() {
      this.$router.back();
    },
    goHome() {},
  },
};
</script>

<style>
.page {
  width: 100%;
  height: 100%;
}
</style>
